from stark.service.v1 import StarkConfig, get_m2m_text
from .base import PermissionHandler


class UserConfig(PermissionHandler, StarkConfig):
    #
    # def change_view(self, request, pk, *args, **kwargs):
    #     resource = super().change_view(request, pk, *args, **kwargs)
    #     if hasattr(resource, "context_data"):
    #         resource.context_data['extra_html'] = StarkConfig.get_extra_html(self)
    #
    #     return resource
        
    list_display = [StarkConfig.display_checkbox, "name",  "phone", "email", get_m2m_text('角色', "roles")]
    